#ifndef __VIEW_H__
#define __VIEW_H__

#include "rectangle.h"
#include "observer.h"
#include "framework.h"

class View : public Observer{
	protected:
		Rectangle viewport;

	public:
		View(const Rectangle& viewport) : viewport(viewport) {}
		virtual ~View(){}

		virtual void setEnv()=0;
		virtual void display()=0;
		virtual void reshape(float w,float h){
			viewport.escale(w,h);
		}

		Rectangle getViewport(){ return viewport; }
};

#endif // __VIEW_H__
